package com.atguigu.yygh.cmn.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author:ahang
 * @create:2022-09-03 19:40
 * @Description:
 */
@FeignClient(value = "service-cmn")
public interface DictFeignClient {
    //注意:路径为controler上面的路径加上方法上的路径

    @GetMapping("/admin/cmn/dict/getName/{dictcode}/{value}")
    public String getName(@PathVariable("dictcode") String dictcode, @PathVariable("value") String value);

    @GetMapping("/admin/cmn/dict/getName/{value}")
    public String getName(@PathVariable("value") String value);

    }
